import "package:ct_pa_majordomo/widgets/filter_layout/filter_dropdown.dart";
import "package:ct_pa_majordomo/widgets/filter_layout/filter_header.dart";
import "package:ct_pa_majordomo/widgets/filter_layout/index.dart";
import "package:flutter/material.dart";

class Reserve extends StatefulWidget {
  const Reserve({super.key});

  @override
  State<Reserve> createState() => _ReserveState();
}

class _ReserveState extends State<Reserve> {
  @override
  Widget build(BuildContext context) {
    return FilterLayout(
      headerItems: [
        FilterHeaderItem(title: "分组"),
        FilterHeaderItem(
          title: "数量：99",
          render: (title) {
            return Text(
              title,
              textAlign: TextAlign.center,
              style: const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
            );
          },
        ),
      ],
      dropdownItems: [
        FilterDropdownItem(items: ["全部", "分组一"]),
      ],
      child: const Placeholder(),
    );
  }
}
